Add local variables

@charlierudolph 

* declares all local variables local
* emulates parameter names by storing function parameters in local variables with more descriptive names