Added code to read address of control box from text box.
Ran code through astyle