Think I've got the sum kernel working! Now on to debugging..