documentation, some fixes in the generator code
docs