Documentation, error handling in phoenix/nlme.py