Hi everyone, thanks to the invaluable help of the editor community, I have been able to fix about half of my bug list for my custom class on my own. It was a lot of trial and error, but I eventually arrived at a solution, and I did many happy dances. 
But that still leaves 9 bugs in the class that I am at a loss on how to correct (or in some cases, even how to script). 'If' statements worked out okay for me, but foreach statements are still not sinking in.
If I could humbly ask for the communities help (and guidance) on how to fix these, I will gratefully share my work with any who want a copy. I can't promise elegant code, but it will hopefully work...
Thanks everyone!

But that still leaves 9 bugs in the class that I am at a loss on how to correct (or in some cases, even how to script). 'If' statements worked out okay for me, but foreach statements are still not sinking in.
If I could humbly ask for the communities help (and guidance) on how to fix these, I will gratefully share my work with any who want a copy. I can't promise elegant code, but it will hopefully work...
Thanks everyone!