Fixed data memory allocation if user_count > 1.
Added IO sample code.