Optimized 'fold' function
Updated documentation
Updated documentation
Updated documentation
Updated documentation
Updated documentation