add main script
update README accordingly