cast attr_id to string to make sure concatenation works
added request type to link_entities
Merge pull request #2 from acidix/feature

typecast attr_id & link_entities correction