changes to logging in hardware and comms fix permissions issue with master.log