Grouped all read function in one read.c file and made them static