improve error handling
some more types, fix constness
small fix
update to new build system