Optimized

Optimized it by removing loads of unused variables and speeding it up by
using ChrW rather than Chr for Int -> Chr conversions