Use parsearg and remove memory related codes

And update readme accrodingly