Update Tail.java

Added documentation