Added the format check
Finished the simple flipping tool