Create Output Function

- Debugging
- Generate first report
- Code clean up