added run_tests.sh, cleaned up console log stuff