refactor main program & write comment for 'libUtilities/CrossThreadProtected.cs'