Some quick and dirty code to get a first version of the library running

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>