restructured collection functions
added new functions
some simplification in the cypher statements