add javadoc to generated code, fixes #8