Rewrote code generation. Version 0.9.7.