add build script. fix README example bug