LoadConfig works without XML now. Some variable name changes and comments