removed bug resulting in wrong characters near end of line getting stripped from messages
added general calculate command