Merge pull request #177 from Edzelopez/RG-205

#37 Fixed remainder amount calculation for grant programs
Pass by reference PHP error fixes in php 5.4
Merge pull request #178 from stan-rnao/php-errors

PHP 5.4 error fixes
#37 --worked on remainder amount calculations