changes to main to add main message and time formatting