Added Logging and a deployment group

wrapped all main functions in try/catch's and added log4net logging to
the client app.