Throw an error if the generator passed in doesn't exist.
Bump to 0.3.1. Fixes #1