some java docs added

Program now pauses for 3 minutes rather than testing for a boolean -
hopefully a more efficient solution.