Added open file error message, removed unnecessary debug information