Update and rename main.cpp to Det_calc.cpp

Still gotta error squash and test it.