fix {% endparameters %} indentation
more formatting tweaks