More debug
Fix invalid json
Fix readFile bug
Fix `params` vs `self.params` bugs