moved internals from sceadan.h to sceadan.c