Added help msg and error messages.