removed unused files, rearranged io. code compiles.