work on formatting and references, mostly