add doc strings
fix fun name bug