Add support for renaming attributes (closes #61)