Work done on x.flatten
Work on Documentation correct