implemented elementsForTag. This closes #99.