added comments; clean some docs