added logic of 'createPharseQuery'
createAlternatives will create phrase quries
Cosmetics after rebase
Extracted some code to private methods
Added call for logger