Parameter altering + frontend bugfixes

Includes Robyn's parameter altering code plus some bugfixes requested by David.