Now supports the config being a joi type

Closes #82