fixed some bug, readme and gitignore