add npm preinstall and update readme