Refactors structure and code, aswell as adds UI for selecting layout
Merge pull request #1 from follesoe/selection

Refactors structure and code, aswell as adds UI for selecting layout