changed readme and fixed some bugs