analysis updated to handle ratio analysis a little better
updating ratio analysis