Add key only reference

Added a support for key references, as described in #256 
Anything missing that should be added?