Set up setParams()
Massively improved I/O