Squelched preg_match errors, added some comment docs.