Marginally faster gradient calculation
Fix bug preventing beta from changing
Clarify name of beta
Fix typo