Script system changes

Changed script system to allow individual functions to be run from the
console