fix comptroller library bugs and add dump of NYC spending