Update documentation, fixes CS

* Added a usage example
* Added a new method to return a generated class as a string
* Added more tests
* Updated documentation