Added functionallity and refactoring
Added repositories config.