add new functions and minor changes

add reshape_planes
add cnvrt_x2zScore
minor changes in mean_inBins