Added test routine and made gamma more clean
Merge pull request #31 from pavanh91/new

Added test routine and cleaned up gamma routine.