Implemented message class and modified registry and registry_skel for using it