added mgcv functions
Merge pull request #1 from jchrszcz/master

added mgcv functions