Fixed Bouncing issue and more GM model behavior

This commit still includes bugs where some nodes have constant direction
and where some nodes vanish. Possible causes are NaN and
generatedirection.