Cleaned up script; added 'ACCEPT' parameter; documentation