Fix attribute error and update README to support Mac
refactoring 'message' attr error handling