added initialization of velocity array w/ comments