Coding style changes

Crafting listener moved to separate class
small changes in coding style