Adds attr_accessor for link.rb, refactors sanitize_link method
Cleans up formatting for templates