Refactored the Configuration class and added more documentation