stat_function docs added