Removing commented out code.
Move check_color out into top-level function.
minor edit joining not-so-long lines.
abstract into check_sizes() function.