Cleanup

* Remove useless `use XMLWriter`
* Debug var name line 25
* Optimize setProperty method