Collection updated

Collection now accepts a hash with objects and pagination attributes