change comments to accepted format
simplify binary search routine