Added debug printouts at faulty commands
Changed api after web gui remake