created output function (NOTE: to cout and not output file currently)