Added support for static functions, better comment recognition regex, condensing of code inbetween functions