Updated removeInlineComments

Managed to get it working. However, it goes into an infinite loop. Will
need help debugging