Reorganized core files into categorized folders.