Finally added end support.
added flipud and fliplr.