Fixes main file and changes tests accordingly
Adds build directory