my edits and additions to rmd file
merged with salahs changes
almost done