Add a debugging option to the config

Also added a semver API definition which was missing before.