WIP.  Code cleanup. Resolve many issue WRT exec and global/local.  Much cleaner now.