changed prop_div fuction to use squareroot instead of dividing by two
added abundace checking fuction