Added additional testing, logging, and corrected potential security problem
Merge pull request #15 from mitocw/cg/various

Added additional testing, logging, and corrected potential security problem