added xFlip, tests, methods