Fixed printing to specified ostream instead of cout

Signed-off-to-Steinwurf-by: Chres Wiant Sørensen <cwso08@student.aau.dk>