Code cleanup and bug fixing

- Added a checkbox for show invisible chars and indent guides to the
control panel.
- Reformatted the control panel