Added documentation to new functions.