added file output for results :)
More Refactor :)