Refactoring and clean up
Merge remote-tracking branch 'origin/master'