Code clean up & performance

Refrained from building character sets on-the-fly. Hardcoded every
character set (should be slightly more performant). Dropped usage
of underscores on variables. Commented the code better.