Added heuristic file from code base. Small refactor changes/fixes.
Minor fix for documentation.