Big modifications. All the core is now in the main directory.