The slip taking off is probably limp mode (2nd gear). The code says you have intermittent power loss from the tcm (trans control module). Could be bad tcm, or shift solonoid pack. Wiring could also be a problem. The input speed sensors are also problematic and are a cheap shot in the dark.