added a save command
fixing checksum code