added format_codes; updated README