added toWkt method and solved a bug with the shifts