Second Commit. Made tests and file validator.