Restructured to pull several operations out, so they can be defined for current or bitwise versions; did away with the stars counting and dump on ncols - 1 stars (can be recovered easily enough)