Renamed Message to Dialog, added slightly different Message function, reordered some code and added getSignature
Reimplementation (partial) of old edit functionality