Adding script logic to README