Fixed Korean file encoding
Use instancetype
Code cleanup