Did some refactoring to improve readability. Started building the initial 'graphical' bits. About to start building the logic bits to tie everything together.