added makeHeader function and cleaned up output of getAdd