Refactoring in to packages
Merge remote-tracking branch 'origin/master'