added auth, updated readme, misc code changes

Here is a branch that shows the changes :-).. I removed all formatting that I had applied to my earlier pr.
Thanks!