edited comments for spelling and grammar; worked on handling incorrect filenames