add source function to documentation