major update, allowed connections and turned documents into objects so things wont crash when loaded from somewhere other then root