Made some adjustments to the access attributes of the methods, so that only the relevant ones are exposed.