added erb reporting template
refactored reporting