Added debug flag env variable

+ Reads environment variable for debug output
+ Removed stupid print from main (blank line on every call)
+ Added debug check for some printing (to clean up output)