Merge pull request #141 from mayurjadhav/RG-192

Rg 192
RG-193 Worked on PHP5.4 issue
Merge pull request #142 from mayurjadhav/RG-193

RG-193 Worked on PHP5.4 issue
RG-196 WOrked on RG-196 to change parmas varaible to grant
Merge pull request #145 from mayurjadhav/RG-196

Rg 196