Renames trend() function to avoid namespace collision; adds documentation to build_trend() function.