Added basic support for serialization + some minor fixes
Added some basic tests and Travis integration