Add support for custom label attributes. Closes #39
Increase default max mem size.