Fixing login bugs, finalizing build and documentation