improved software metrics section and refactored some