Refactoring

Does not use config. Refactored to ease readability.
Added client. State no longer needs config.
Added a simple api for commonly used strings.
Refactor and addition of config.