starting to get the web server going. Change the main function, added a index and change the pom.xml
fixed some bugs