Refactored main.c into logical units, added better CLI
With these files
Plugged some memory leaks