added internal documentations in codes, no codes are changed