Added test in main, fixed the bug where the getTransformation was altering the current vertex (fixed by cloning the vertex before modifying it) and fixed an emptyStackException which occurred when the program tried to peek into a blank stack