Add gain function
Merge branch 'master' of github.com:ritze/config-files