Added a main with basic file handling + now compiles with -Wall -Werror
Some testing + debugging