minor code changes
documentation fixes