added DOMAIN, AUTH variables to initialization routines.
Added NTLM auth, fixed issues with auth not being used.