pull stat calculation into a function
more templating for displaying stats
added repo stats