Fixed several issues and improved config checks

See change log for more details