Added table gui to debug the system

added sin source
changed program structure
added error treatment