The best documentation is to look at other modules, and to ask here or on IRC if you get stuck. For crafting in particular you may wanna look at http://forums.norganna.org/discussion/4483/disencrafting-baserule (near the bottom; some of that thread predates the current evaluator-based BtmScan).