debugged the code and it works!  Will finish up the clean up later.