cleanup and a few commands, as well as documentation