implemented some more cmmands and cleand up the debug output