Some docs, logging, exception handling updates.