Added 'checkCredentials' to auth.py. Made various other small fixes.