There aren't really "instructions" so much as a prerequisite of knowing how to program in C. You can use the hello world and other plugins as examples to help you along. Do a search of the forums and the wiki and you may come across more information.