Add array_add_relation and related_to query
clean up the related_to query code a bit
add a log message
remove puts statement
fix up call to pointer
Merge pull request #59 from ruprict/add_relation

Add relation