splitbuf - add max number of split array elements argument to splitbuf

readfiles - fix handling of comment characters inside quoted strings