fixed bugs and updated ed rails and gems