rename stat.h and modify a lot of naming style
change all the uint32_t to size_t