Fix error a undefined key in COOKIE in getSub function. Renamed classes for compatible with autoload psr-0