Mpower java dev

Added comments to the codes.
Defined an Enum data type for the modes(i.e "live" or "test") in the MpowerSetup.