Made testing more modular
Added test for checking libstats
Fixed multiple datatypes and made system more memory efficient