adds a method to strip single line comments

also adds a method ‘strip_comments` to encompass stripping both single
and multi line comments