Remove outdated comments.
Move the algorithms into another file.

No need to sequester it under the GUI code.