Added usage + credit to compress.js

* Added credit to the original document that detailed how this works,
and what this is mostly based off of
* Added usage and return values to the top of the file for the
algorithm.