added attributes to Session
added attributes getters and setters to Session
added some error checking to Session