fixed logout + renammed sign_in to login and sign_out to logout
updated a lot of code in API and added beginning of API doc