Adding memory printer stuff .. not done. Also adding comments