add missing values approach, clean up and minor edits.
Merge branch 'master' of https://github.com/mclark--/Miscellaneous-R-Code