more robust build script and readme