TwigService fixes

Fixed bug with parameters
Added logging