add option support for URL and PORT, outline msg parsing and error handling
Merge pull request #1 from bpostlethwaite/devtest

add option support for URL and PORT, outline msg parsing and errors (Ben P Magic)