Major code cleanup, combined some communication functions, reduced the number of commands issuing color change commands, created function to handle link refreshed