BAC calculations working (mostly), + GUI fixes