Restructuring. Added directory 'core'