Added own exceptions and exceptions when the path is not given, corrected the order of information in file