cleanup & documentation