added total revenue functionality and added an extra target in the makefile