add .idea
add makefile and refactor bootstrap