Adding API interface and the initial logic to implement the api. Adding initial register update functionality.