fixed some various incomplete things

- added proper controller instantiation
- added function bodies for flush, init and exit
- added function documentation for flush, init and exit
- allowed for defining the port numbers via the options file
- commented out the port binding code for now
changed the options option from inputs to interfaces