A port of David Herman's struct.plt planet package