Output now is ritten to a file not the console

See summary