corrected bug in file type detection
removed console formatting for notifications output