cleanup and example documentation