Fixed minor bugs. Tried to improve dffconv.