add optimization to makefile
add interactive mode