Fixed javadoc comments

Fixed wrong html tags; added {@code} for generics; closed html tags to make XHTML format.