update README and fix a mem init bug