Merge pull request #24 from ddobrev/master

Generation of function pointers