Add documentation to exported functions