Removed unused vars.
Added 'config.h'.
Allow consecutive calls to init
update graphical interface