Replace return values by tuple with ok or error atoms
Add f_get_geometry function

This will clone the geometry object, not like f_get_geometry_ref.
Change return value when error in loading function