Minor mods: User pwd now included in calcAlphaBeta()