Added generics for java and updated commenting