Adds spec for references (closes #2)