Added power cell check.
I think everything's working, running all tests next.
Added testrig and fixed problem 1.