#21 - Working solution with queues

added a new class control. This class contains all write access to
files and other vars.

Next Step is to clean up all the code