some updates

1. use float instead of double
2. remove window and minCount from constructor
3. minor style fixes