Minor fixes in GP framework

- register mean function
- fix some indentation