Fixed typo and leftover function that got replaced in the GAIA function definitions.
Merge pull request #24 from MikeMatrix/GAIA-Hotfix-1

GAIA function definition issues