added debug messages for serial commands
added better error handling in asyncore loop, error status returned for settings commands with non-empty buffer