added value and index methods, passing tests
Merge pull request #35 from milktrader/comprehensionforelements

added value and index methods, passing tests