small changes. undid test for all zeros in stripOuterZeros.