changed datatype for id from int to float, added exception for wrong coordinates, etc.