license in readme and some bug fixed