Fixed problems in Generate().
Added feature to select # of channels, but still file data not loaded successfully.
Added feature to select # of channels, but still file data not loaded successfully.