repo reorganization, fixed compiler warnings, skeleton makefile and main