fix the build system and update the docs and the rest