solved issue with embedded gists and another minor changes