cleanup rules
patch to disable cryplib
fix some docs