Fixes issue #165

Just took me a few hours.. the UI library really needs some docs.