Update Documentation and array count checks