LogP added. R bug fixed