changed default precision and added function to change the precision