changed ranking algo
Fixed dir bug and added some colors
todo