Some more error handeling in FileRepository and GUI