physically move file handling to separate core io package
logically move file handling to separate core io package
fix most default scalastyle warnings