Finished most of the output

Nearly finished. Just documentation left.