Refactored class structures.
Added new hive serde implementations.