Finish work on gen-class for now

Could still use some polishing with constructors, but now the basics
should be supported.