Removed redundant code.
Explicitly set unused CGI variables to empty.
Added BSD license, and header to all source files. Also AUTHORS.