Added function that removes lines from a file