restructure code; linkify readme