added comment about rotation
added comments for undoc'd functions
unit tests for getBest and getPeers