Added constructor
Added testers for some of the functions
small changes