Added option to set params as array
added missing whitespace
updated code formatting

to be consistent with original style
Merge pull request #5 from udondan/master

Add option to set params as array