Added getters and setters

Added getters and setters for input, output, setpoint to handle atomic
operations correctly.