got rid of code detection manually, using regex to detect code comments