commit code for v1.0.5 - refactor, added auto sign in, bug fixings