Fixed failed test

Caused by integer division instead of double division. Also added missing javadoc in
EarthquakeGenerator class.