Making the struct from C
Build constructor
Adding close system (the class works great now)