Numerous changes to improve logging and support additional modem
commands