change variant and name token arrays to hashes
fixing documentation