Add startHTTPServer function
Cleanup and add comments