Added inviteWindow that allows for invitations. Other small changes