fix some bugs and added user friendly batch files