Problem cleaning up the code

tuxduino:
A link to the lcd datasheet would be useful, to understand its serial protocol.

Hope you have enough with this .

http://connect.iobridge.com/docs/function-boards/serial-lcd/
http://www.arduino.cc/playground/Learning/ioBridgeSerialLCD

Thanks Already