detection of missing data and adding attributes

detection of missing data and adding boolean attributes which are set as
1 (data present) or 0 (data missing) of the respective column of
reference.