fixed memory leak
added destructor for class pointer
made code more readable. removed internationalization tr() functions