Added further javadoc for byte code generation, added further tests and fixed existent tests.