various minor fixes in GPs framework
Merge pull request #1829 from votjakovr/feature/gp_refactoring

Various minor fixes in GPs framework