Changed the menu structure creation logic.

Now all the layers/options/selections are setup in a structured .xml file instead of creating more .java classes