updated script for cleaning data; fixed report bug