Fixed Node issues, cleaned up debug mode throughout