Fixed bug in folding mechanism which would not include non-divisble elements i.e. folds=10, 3961 elements, the last element would be omitted.  Also screwed around with using numpy on the Python version