Added necessary getters and setters

for the private variables as well as an update function to format locals