javadoc, testing Generics
added license header