Fix some issues
Add a JNI class for reading serial data