remove unnecessary comments, and internalize the def'd functions
add a visible function to invert scaling offsets
actually return something from get_scale_offsets
also, follow PEP 8 for the docstring
FIX: the default for pclevelthr was wrong