Partial rewrite

Rewrote report.php
Added class files
Added header and config files