Fixed typewriting bugs , enabled debug mode to be able to clearly view errors