some code restyles

better README
fix a login functional test