had to implement my own ranks function and then got BWS calc right, added license and autotesting from rakefile