move source code in src/ directory into src/core/