added arrayaccess implementation
added documentation about the Countable interface