modifying timestamp
fixing extra spaces
cleaning up output