Create output.h

This file contains all the functions which writes output to the file.