added license and updated readme
fixed a few bugs