Cleaned up the code, and patch it to newest version(0.4.1_r19425).
Started making support for keyboardbindings.