Complete code refactor.
UI separated from logic.
Added three modules: -library -sample -extras.