Remove config object and replace with kwargs.

Fixes #45 and addresses part of #98.