added debugging info, modified path to data and rate