Changed contructor again and created all basic getter/setter functions. Having trouble with isValidKey() function at the moment.