rename parameter and function names, delete unused columns, add reference