argparse and logger added

Added argparse and logger support to the main module. Added a new function that creates a logger with the specified options - it creates a logger handler for the console and file. 

Added a 'DEBUG' boolen value to switch debugging on/off. Currently if DEBUG is true, the commands will not be sent to the remote deivce but instead will be printed out to stdout.