Made it possible to choose the number of locals a function uses. Cleaned up the parser.