Bumped to version 2.1.7, use options hash, added debug parameter to write gem debug messages to file