fixed script bugs and updated readme