More script function checks, and code style using more PRO checks.

*Also removed bash use, as most dont have bash installed in bin.
*Cleaned not used code and inits.
*More fixes for renamed mpdecision service.