clean up code; linkify links