added report software code
cleaned up