compare structs works WOOOOOO
merger now handles reading from pipe
read from pipe and put output in file
cleaning up logs