ultrasonic sensor+servo code

hey guys,
I'm a 15 years old student who is working on a research project about arduino and i'm having a problem and i was wondering if you lads could help me. My project is a servo conected to an ultrasonic sensor, it would work like a radar, the servo works on its own and so the sesor but when i mix them ithey don't. The monitor serial instead of showing me the distance between the sensor and the object it tells me its angle.
I dont know how to change that, here's the code, will you guys check it please? As you will see most of the code is copied from the internet. By the way sorry if my english ain't understandable, i'm not native speaker. Thanks!
/*
HC-SR04 Ping distance sensor:
VCC to arduino 5v
GND to arduino GND
Echo to Arduino pin 7
Trig to Arduino pin 8

This sketch originates from Virtualmix: HugeDomains.com
Has been modified by Winkle ink here: Winkleink - box of wires: Arduino - HC-SR04 ultrasonic distance sensor
And modified further by ScottC here: http://arduinobasics.blogspot.com.au/2012/11/arduinobasics-hc-sr04-ultrasonic-sensor.html
on 10 Nov 2012.
*/
#include <Servo.h>

Servo miServo;
int angulo=90;

#define echoPin 7 // Echo Pin
#define trigPin 8 // Trigger Pin
#define LEDPin 13 // Onboard LED

int maximumRange = 200; // Maximum range needed
int minimumRange = 0; // Minimum range needed
long duration;
float distance; // Duration used to calculate distance

void setup() {
miServo.attach(9);
Serial.begin(9600);
Serial.begin (9600);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(LEDPin, OUTPUT); // Use LED indicator (if required)
}

void loop() {
unsigned char comando=0;
if(Serial.available()){

comando=Serial.read();

if(comando=='a')angulo+=10;
else if(comando=='z')angulo-=10;
angulo=constrain(angulo,0,180)
;
}
miServo.write(angulo);
Serial.print("Angulo:");Serial.println(angulo);
delay(100);
/* The following trigPin/echoPin cycle is used to determine the
distance of the nearest object by bouncing soundwaves off of it. */
digitalWrite(trigPin, LOW);
delayMicroseconds(2);

digitalWrite(trigPin, HIGH);
delayMicroseconds(10);

digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);

//Calculate the distance (in cm) based on the speed of sound.
distance = duration/58.2;

if (distance >= maximumRange || distance <= minimumRange){
/* Send a negative number to computer and Turn LED ON
to indicate "out of range" /
Serial.println("-1");
digitalWrite(LEDPin, HIGH);
}
else {
/
Send the distance to the computer using Serial protocol, and
turn LED OFF to indicate successful reading. */
Serial.println(distance);
digitalWrite(LEDPin, LOW);
}

//Delay 50ms before next reading.
delay(500);
}

Please put your code in its own window as seen in other posts. This can be done by placing     [code] and [/code]  around the code. This makes it easier for others to read.

Weedpharma

I'm sure you can figure that for yourself with these clues....

This line prints the word "Angulo" followed by the angle:

Serial.print("Angulo:");Serial.println(angulo);  // line A

This line a bit later, calculates the distance from the duration:

 distance = duration/58.2;  //line B

So have a think about how you can make a line of code similar to line A, but to print the word "Distance" followed by the value of the variable from line B.