Add maxBranchDepth

Also finally made all methods in ConfigFile camelCase instead of
CamelCase.