made template and libcommon, edited all existing files to be built on the template and to import libcommon