Added javadoc for getNextTag, and outline for missing code