Add C-interface

Also simplified C++ interface (forget about that callback crap)

Signed-off-by: Christoph Höger <christoph.hoeger@tu-berlin.de>