Moved code around for the swift compiler
Added shell script to run tests in command line.