Changed credentials format from dict to tuple. Imporved documentations.