replaced return value of removeDocument with a signal
added basic loading GUI
moved new flag from setupData function to Document constructor