Late commit, version 0.2.0

Added --thresh
Added shebang line
Fixed writing out OS-specific line endings