Add methods: find_scalar, change precision; and fix some bugs