Cleanup and bug fixes

Fixes issue #17 
Added test script and various test directories
Shortened test files
Added some comments and misc cleanup.
I just realized, profiles are only used by the scoring end point: 
Maybe change the last sentence to "using the specified set of profiles, thresholds, and/or detectors"?