Hey there.
The Adding Coding Rules is a great jumping-off point. You can find all the documentation/examples there.