Added Serializable interface to data entites, verison up to 0.3, improved error handling.