fixed a few more bugs. The simulation looks somewhat physical now