Ordering/Fixing things

command method now only ask for commands, fixed unclosed connection for
webpage, better 'todo'.