added check if order exists on state change for #17
Improved config template for #9
Added pretty config for #9