Changes to function parsing.

-variables can be declared anywhere now