tweaked comments and better logging if the file on SD could not be opened