working on output format
stable. Need to work on csv output next