string or object
use typeof instead of instanceof
Merge pull request #103 from Dakuan/accept-config-object

string or object for config