Added javadoc comments to Tail.java