Replaced Cookie option with USERNAME/PASSWORD option.  Added a login function to grab the Cookie header and pass it to the accessfile function.  Added some error catching and improvied user output to the module.