Updated to fix problem with creating ref contacts
Merged Jovy's changes and added function needed to create reference contacts
added function closeAllOpenProcessTasks
Added Meit's changes to customLog() and new function closeAllOpenProcessTasks()
Changed initialize flag in logCustom to prevent inifinite loop
Changes to logCustom()