implemented the indexer to get/set a item.
added comments.