Use K&R style for brackets
Use grunt options instead of data
Fix minor code issues
Use typeof for function checking
Merge pull request #2 from DaQuirm/master

Minor code tweaks