finished code generator and added some tests