reformat code; update readme