added in welcome message
put in some guards against odd data