added support for functions;moved samples; moved assets;
Merge pull request #11 from EightMedia/functions

Added support for functions fixes #7