fixed some parsing bugs
fixed command.php to correctly judge bytesize of query return value
Fixed the error function and other things.