adding validation on the base options to avoid the error TypeError: can't convert Nil String into Integer
removing typo.
Merge pull request #40 from sbotman/master

Fix for Issue #4 (better error reporting)