Logging added

Add optional argument --debug. If turned on, set log level to ALL, otherwise set log level to INFO.