Refactor output to separate class
Refactor OutputLine into separate class
Merge pull request #536 from bitwiseman/output_class

Refactor to Output and OutputLine classes