Bugfixes & extra formulas for homebrw