Updating syntax for new customer, return better error message

Hey, not sure if you're still maintaining this but I thought it was a cool resource. Anyway, you had some code in here that was throwing an error, I assume its out of date. I updated it to correspond to the latest docs for creating a new customer.