Center status text.
General code cleanup.
Split some code out into separate methods.
Add some simple Javadocs.