refactored global functions as protected static class functions
Merge pull request #2 from datawrapper/remove-global-functions

Refactored global functions as protected static class functions