Implemented size for sets
Added unit tests
Better comments, private references cleanup.