Added the pseudo-updated code I've been working on to replace the initial main.c. Scrapping it because I can't stand not writing unit tests for this application, will be researching 'check' and utilizing that or some similar unit testing setup for the next revision.