Added JavaDocComment to comments.xml
Made checking references optional
Implemented some JavaDoc tests