Add scoring.  Fix letter frequency calculation.  Some style improvements