Turned nearly all parameters into constants and commented them