implementation of missing CMTS features and bug fixed 

See commits discriptions.