Added some missing newlines. Revised LCD defines.
Merged in changes from the Pi
Tidied up LCD driver. Added templates.