updated readme and made response more robust