restructuring code
update to match docs

changing API to match most current version
Merge pull request #1 from wix/collections

API updates, updating to newest changes