Add some documentation and export foreach
Merge pull request #2 from rdunklau/doc_pr

Add some documentation and export foreach