Added basic fd check on i2c_open.
Added get_config_data.
slowly cleaning up debug.