Added logging capabilities

 - Added logging capabilities for debugging purposes

 - Added command line arguments to the parser