addressed CR notes: added class description
addressed CR notes: added class const description
addressed CR notes: removed usages of $this->app and used globals instead (back to the roots)
addressed CR notes: used const instead of hardcoded integer
addressed CR notes: used in_array() result instead of unnecessary tertiary operator