Re-added script file

Also made some small changes in main, and created three script files for
testing.