Added time and fixed code

Seemed to be an issue where the app would usually crash when attempting
to send message.

Could not find where this was originating from so copied the project
code over which seems to have fixed the problem.

Also added timestamps to messages.