Added assumptions
Correcrted functionality for calculating total spend and total profit
Added code comments
Corrected the pom file and some code refactoring