Flip and Line trace update

Flipping and Line trace added