now done with wrap up function, needs to finish documentation