Improve comments stripping in compress

Ignore comment during compress if starts with exclamation mark
add tests and fix whitespace issue