Added documentation for new functions