added functions of printing memory & creating a server