MatchAndStats Class init

MatchAndStats class and moved some things to the APIInternals class