Updated docblocks. Fix end() method