Fixed an oversight which was allowing a file to be annotated when it was
already open in another annotator tab.
Added comments to quite a few classes.