clean up & documentation