fixed bounding box function

i fixed the boundingCoordinates function and add the 'main' field to package.json