refactored core to package object
Merge pull request #2 from pongr/core-package

refactored core to package object