added some text on heuristics
fixed a couple of bugs
added output