update readin function to read both windows/linux file, also remove some useless files