Pool simplify

* remove trailing spaces
* writer terser ruby code
* remove useless comments