Some style changes and others.

I've made some work in order to keep lines no longer than 80 lines (at
least I am trying to). Code looks much better with that limitation.
Other changes are: handling unused switch cases and making a class from
struct menuEntry.