Explicit formulas for Drinfeld modules and their periods