bugfixes, support for custom serializer, update README