Add version number, fix formatting and identation

Version number added to main window title, identation set to tabs where
necessary.