reorganized

monstrously simplified code organization, at the cost of making the root directory pretty terrible looking.