Clean up typos, cleaned up code, fixed minor bug in ACK mode for dying gasp