Update gs-wp-tools.sh

Improve code readability, fix tabs, add useful comments etc.