added NaN test for check_consistent_sizes
added doc in code for check_consistent_sizes