Export average_forecast and split_data. Add more inteligent handling of
error messages in modsel.