change error messages in some controllers and add bin directory