added readme
fixed tests
added license notice at beginning of files
updated command line tool options