Changed variable names for easier usage.  gramsToGrams should be fully functional.