Improved timeout accuracy for commands using the --wait flag. Added mres command to perform a memory reset on the PLC.