Fixed authentication, added examples, proper class without code in the end