functions: first cut
Merge pull request #13 from rafacm/functions

functions: first cut