Added documentation for the Expand function.