changes to api
fixed collection and document relationship
work on document operations