Focus especially on ultralcd.cpp redundancies

Where possible, combined multiple functions into a single function.
Continued to apply formatting changes throughout.