Minor changes.
Added a clearMessages method. Requried some changes.
Changed what is printed in a message div. Now print time.