some cleanup, added some docs