Implementing suggestions.

Added "missing" tuple.
Changed algorithm for finding a minor.
Removed unnecessary helper words.
Some words made private.