Setting annotations and javadoc