Added extended documentation for fold