Some bug fixed for ID manager, many documentation updates