added api doc to the collection class.