Final tweaks in heuristic parameters. Adding documentation.