Added script file selection dialog

- Some work on the indentation bug
- Added some test scripts