refactors flatten method, adds formatting to console output
enables move_track method to rename duplicate files
adds test support for error messages