Fixed a divide by zero error.
fixed server bug; added random initialization
Working preliminary algorithm.  TODO: tweak algorithms, implement maximum speed, generalize for different boundary sizes, fix distance for periodic boundaries
Merge pull request #4 from Kadish/master

Fixed a divide by zero error.