fixed enemy type representation in scripts
Moved script parsing code to its own module, script