Added editing of references. Hallelujah! Fixes #91