Fix build.sh mode, test output, docs