small update

Added .esm support and a couple minor tweaks