Javadoc for toOpFunction(AST) and some commented stuff removed