Added documentation for high-level functions