Update composer
Add tests for Config
Clean up and implement static factory methods
Fix visibility for subclasses
Fix phpdoc