fixes #5 and fixes #4 Caching fixes, should now be usable

Signed-off-by: Jan Zieschang <dev@zieschang.net>