Completed functions, as well as R Markdown files added