Corrected errors revealed by testing.
Added a specific error for invalid proxy credentials.
Added my unit tests.
Very minor change to README comment.