Made messages into objects. Fixed messages deletion. Fixed rare bug created by os.getcwd().
Updated.
Messages are now objects. Fixed deleting messages. Fixed rare bur from os.getcwd().