functions only used localy. So it's better to use static to avoid a warning
adding header file to avoid warnings about function without declarations
Merge pull request #63 from fotonauts/static

set functions as static or add declarations