finalize documentation (needs some scaling for listings/table)