Fixed some minor issues and tested Repository correct work.