slight refactor and fixed numSubsets calculation bug
Nearly 100% code coverage on webapi now in unit test form. Some minor design changes were made due to inconsistencies identified
missed one!
added missing import