Prettifyed code.

run code through HTMLPrettify and removed some rather bad and ugly error
messages