Finished. All encoding should be done. Added Encodable class. Tests not yet updated.