Fixed precision errors. Closes #13.