crated a separate file for the console
minor improvements
fixed problem with output
fix to get the whole output string rather than get a partial one each time
added support for report generation