removed print
Using doubles everywhere but the node positions.

This matches how it is implemented in Java.