Added test class generation
Tweaks to test, xml, etc. Still need to finish the foreign key support