Refactored settings and models into separate files