whitespace cleanup
added cgi env var setup for http headers