cleaned up some print statements in translate and added basic loop to homography function