Rearrange files structure and move some codes
Clean some unused comment
Define some IO action
change the routine more reasonable