added stage1 pp tau algorithm, bug fixes to stage1 egamma algo