restructure project to lib folder. add make