Fix cd path in codecount script
Misc. pattern tweaks
Note possible idea/improvement
Change markov chain algorithm from equal probability to weighted probability