update function names
add figures and text to paper