added comments and javadocs to ArrayBasedCollection class