Fixed issue where messages were being sent before channel was opened

Also added new cascade setting: cascade_s (which specifies how many
categories should be grouped in fit jobs), and record duration