Fix configuration loading and follow coding conventions.