fixed a few bigs and added a timestamp to the messages