Fixed console output - no unwanted undefined variables are shown anymore. Thx to phedders. fix #1