added servlet 3.1.0, added some error handling

error handling from previous project added, remove old files,