Added error handling for opening a project file that is missing.
Optimized some function calls that passed a node and the nodes document in the same call
Optimized more function calls that passed both node and doc