I have know got the main section of my code looking good, and error free. I have now created a secondary file to handle to the class tag ownership that reads at the start of the file as that was an error that popped up as part of the change. Now just making a correction inside that file and hopefully all will be good. Fingers crossed.
This is the Main Body of Code where the secondary file is referenced: