added NULL and %s for printf
advancing printf, added memset