Fixed duplicate messages. Write numbers formatter
Format source code
Minor fixes