Fix some inconsistencies with loading locations and allow using ids in distance and height commands. See #19