Refactoring  the code and add the makefile
modify the README file