Use CRLF rather than println in any web server.
Tweak constructor, error handling