Handles foreach
Adds more tests
Adds travis build status to readme
Handles if func