fix readme formatting
make sure redirectUrl is a full URL
handle API errors