Added topbase routine, works for creating HE I levels, lines and XS