added comments and documentation...

added comments in the script and changed README.MD