fixed some errors,added help for messages etc