Fixed visibility of functions in the implementation file + added @staticFunction macro for defining file-local functions