some compile time issues fixed
rebar
remove makefiles
make sure set and other functions are correct and remove compile warnings