add JavaDoc comments and remove cpu timer functions