added support for mirror copy
started working with file repository class
First working implementation of core