improve class inheritance stuff
fix ClassPattern and doc-gen.js to print most of the patterns
Merge pull request #25 from Ceasar/adi-classes

stuff mostly working