updated rule logic and added minor debug for use with logger (to be committed post merge back into dev). rules ready for merge. error saves disabled by default until next commit
removed reference to rules engine. will be implemented in a different way in the next commit