Added UI to revert commits. Fixed some trailing whitespace.