adds constants to reconfigure paramters
a variety of tweaks