Fixing bug in "IsComment"

It couldn't distinguish single-line block comments from open block comment lines
Also fixed an erroneous deletion and some code comments