Rewritten all comments and texts on English, made code little more readable.