Error Handling Refactor

Function to process color objects uniformly
Function to check argument lists for basic errors (too few, too many args)