cleanup & doc