fixing readme + refactoring message flash code