Delete needless conditions
Delete needless arguments
Fix functions to adjust cursor point and show same line's error
Add comments to decrease flycheck's warnings