Bug fixes in observable. Added serializer.