Added toString fraction mode
Corrected and extended JSDoc