got some of the regex parsing, forgoed the comment removal