Authentication

finished authentication - please merge with master