Changed the constructor for documents; Started adding listeners to
Editor GUI