Functions v 0.29

Basically bug fixes
test cases v5

added an argument