Added comment describing the main function.
Removed code that is no longer needed.