fixed deletion of empty fields in flattenData fcn, put default in field value assignment, fixed url of module file