Huge Update!

1. Added ResultString
2. Structure the code
3. Fixed the bug which disables IME while returning back to the window.