Use ginit to initialise globals
Merge pull request #113 from mkoppanen/master

Use ginit to initialise globals