FIX: Identified a bug in the way X and y design matricies were being built. Fixed by refactoring somewhat