Implemented first attempt at auto-save and fixed cp command