just removed a few outputs, but added a function to get the coordinates of the bases