Fixed bugs. Restructured code. Modified Scripts. Added script to run all
the tests.