Additional optimizations
merged and debugged
Fixing tests
Adding unit tests to reproduce error.
Merge pull request #58 from jegonzal/KryoMessages

Kryo messages