Added timestamp to newly created messages.
Fixed intendation