FIX bug issue #59 on github

1) Fix bug
https://github.com/openworm/OpenWorm/issues/59#issuecomment-14236860
* Struct Elasic Connections is changed: now
jd -> id of j elastic particle
rij0 - initial distance between two elastic
particles
val1 - unused yet (But I plan to put there info
about charge)
val2 -  unused yet (But I plan to put there info
about body to which this connection belongs)
2) improve autodetectiog of device
3) clean up code a litle bit