rename some functions
document theta derivative error bounds