Make math and 'almost' functions publicly available.

Correct coding style errors in commit 8abe3ec

fix indentation