Renamed header. Fixed memoryleaks. Added example in main.cpp