keeping writing comments
fixed a few wrong assumptions
adding proper comments
no checking for '# ' in strings
fixing a deleting issue