Added code appendix for custom control to LaTex.
Added some text, added some logic for custom control.