Working Library with .h/.cpp

everything seems to work now with the .h/.cpp