Fixed repeated letters

Fixed repeated letters and other smaller fixes