small enhancements, bug fixes

Changed scale passed to get_distribution, changed order of imputation so
that variable with least missing data is imputed first.