Corrected spelling of "Lightening" to "Lightning"

I renamed a few functions to match the correct spelling of "Lightning".