Made setting parsing automated instead of hardcoded in (functions heavily modified), and removed leftovers from an early scrapped design