Modified to account for both username/password and apikey login and validation
Modified documentation - Init section
Fixed issue with login function, was passing 3 arguments to _login regardless of the number of arguments sent