Update and rename main.cpp to defs.h