Added README and cleaned script code