Cleanup and math logic fail fixed, s m and l derivatives now being created