Added my changes to Eric's script plus updated the README file