Correct syntax for parameters in subs
Updated gitignore
Fixed wrong index on arguments