Refactored code and made changes to appearance.