Refactor the build system and README.