added function handling
Merge branch 'master' of github.com:andresteingress/gript