Added 'openFile' action
Improved how errors are logged/debugged