Making more functions

Still persisting error of cannot find the file output2\\0
Something is still with the rotation, there will be further attempts to
repair this tomorrow