Refactor Configuration

- Configuration now uses config file instead of env