Added java doc and removed duplicated code from teh method add and edit
time reports.