modified the messages printed upon opening a file