refactor commands for DRY
formatting output of code etrics
adding centrality command
formatting