created documentation for collect_step_data and added the functionality of a callback function