added documentation and made changes to the view