Script class now loads config
Fixed accidental removal
State variables for functions
Removed old state stuff