Small fixes for Serializable classes
Added exit message
small fixes