declare local function static

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
make usefull function global

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
add README, describing the API

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>