made the url the entity id
dead code trim
whitespace edits