added option to allow renaming of metavars. Fixes #4.