code update and documentation updates