remove unnecessary functions
add makefile and main