Added view menu and formatted some of the already existing functions for readability