Add to and extract from repo done. Unit tests added.