added entity metadata class; added expiration submodule