* renamed function
* doxy
* reduce use of RIGHT() macro
* sorting the code