I'm so bad at this.
semi-working version <informative>
broke code into functions, added cleaner console output, implemented sorting
I think this is how you makefile?