finished output formatting and automation, partially updated doc