Added file output instead of to console
Making output easier to read