minor fixs & memory exprs
Merge pull request #14 from ptr2cat/memory

minor fixs & memory exprs