Fixed several bugs. Added rxtx library.