converted all code to use Double instead of Float. Removed Group class. Removed some swear words from the source.