Structure refactoring - move index.js to core/index.js