Updated C file, added Constructor + Destructor