Updated authentication

Added Bearer to authentication header and some cleanup