overall refactoring and added FFlock.js
refactored ringFlock.js
updated examples/index.html