Fixed some local var problems

Arguments now get stored within locals
First local variable "this" is being written into the scope for the sakeof it
Small fix on the test.sh, does now work