avr to lcd

Good news! Not only did analog14 work for row 2 pin of the keypad but analog 15 worked for row3 pin as well. I'm not all that hot with programming but having had a not-so-good experience in my microprocessors class, have suddenly had a renewed passion for it through the use of the arduino mcu. As you may have noticed, the overall sketch that i've sent is actually a combination of the keypad sketch and the lcd sketch and with 'logical' additions of other 'C' syntax which i figure will give me what I want.
Having made the changes above in the overall sketch, it still hangs up on the upload.
I'm thinking maybe the encoding is too long. Is there a more efficient way I can obtain the parameters in the sketch to be displayed, and am wondering where i'm going wrong.