Implemented functions A-D, bugfix in function regex, added autoprefix for constant references/global variables.