Set coords

Added function to add and set the coordinates of fragments.