fix Makefile
add index page
refactor