First implementation of python logging. Replaces all print statement
with the proper logging function. New command line argument added
which enables debug messages if used.
Added debug statements