set up branch
restructured code.

Code restructured so that the instances associated with the connection
are now within the application class, which also contains the frame
class within it.