Fixed the mouse list order mess.
A lot of clean ups from waltje; Start of a directory structure for the code, thanks to waltje.