Moved document classes into it's own namespace
Created a label panel that can add or remove labels.
Tweaked so that adding labels logic is improved.