Removed boundary insertion error checks
Script doesn't work as inedned
Added Kerberos authentication in script, some basic sanity checks