Added Template for handling output generation.
Added associated PHPUnit tets and mock files.