update base files. the comments and some classes/functions updated.