I found this somewhere but not sure where very imformative http://www.geocities.com/jmahan0/lightning