small changes

minor changes
Cleaned up directory and modified http request loop to close each connection