update README, reformat code