Clean up

* Coding style
* Delete whitespaces
* add a comments to #endif
* move scripts into script folder