Implement meminfo

Fixes #3.