syntax fixes
some changes to typewrite