Tidy up modules

- Remove revealing module pattern, all modules are already wrapped by default
- Public exported methods/properties at top of file
Add isArray check
Merge pull request #2 from marceldupr/module-tidy-up

Module tidy up