Added ModPowerLaw and JUNIT test

Also modified PowerLaw and JUnit test