Fixes #384

Changes exporting code for package creation as well as replaces `.st` prologues.