Revisions 2

updated documentation and ui.r