improved readme
fixed some bugs
added license info