Here is what I ended up with after trying to compile your files.
*** Error 71 "main.c" Line 171(0,1): Out of ROM, A segment or the program is too large MAIN
Seg 00004-007FF, 0654 left, need 067D
Seg 00800-00FFF, 0800 left, need 0971
Seg 01000-017FF, 0800 left, need 0971
Seg 01800-01FFF, 0800 left, need 0971
Seg 00000-00003, 0000 left, need 0971
Seg 00004-007FF, 0654 left, need 0971
1 Errors, 0 Warnings.
Let me know if the 4.038 to 4.068 looks like its doing its thing.
I think I know what the problem is. I need to segment the code so that it fits in the 2K bank segments. Does anybody know how to do this? As I said, I am new to CSS.