Added About dialog.
Moved some functions around, added comments.