Edited main function and updated channels for go rutines