Slight changes to the view
fixed the button bug, added documentation,woked on indentation.