Revision 2

Added Comments and cleaned up the scripts formatting.