add simple command-line interface, retab some files