Added basic stats library, in C since C++ was being annoying, also example file